package com.oig.auth.api;

import com.oig.auth.api.factory.OAuthLoginFallbackFactory;
import com.oig.common.module.SysResponse;
import com.oig.sys.auth.dto.LoginDto;
import com.oig.sys.auth.vo.LoginVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(contextId = "oauthLoginService", value = "sys-auth-server", fallbackFactory = OAuthLoginFallbackFactory.class)
public interface OAuthLoginService {

    @PostMapping(value = "/userLogin")
    SysResponse<LoginVo> userLogin(@RequestBody LoginDto loginDto);

}
